//
//  MyLayout.h
//  testZhengShu
//
//  Created by Garlic on 2020/3/27.
//  Copyright © 2020 garlic. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol MyCustomProtocol <NSObject>

//返回每个给定的 indexpath 需要多少行
- (NSInteger)numRowsForClassAndChildrenAtIndexPath:(NSIndexPath *)indexPath;

@end

@interface MyLayout : UICollectionViewLayout

@property (nonatomic, weak) id <MyCustomProtocol> customDataSource;

@end

NS_ASSUME_NONNULL_END
